package com.yl.chainStore.services.sick

import com.yl.chainStore.common.enums.Status
import com.yl.chainStore.common.enums.TypeEnum
import com.yl.chainStore.entity.company.SickCustomerAccessLogModel
import com.yl.chainStore.entity.company.SickCustomerAccessLogModelDetail
import com.yl.chainStore.pojo.vo.company.SickCustomerAccessLogModelSelectVo
import com.yl.common.control.ResponseBody

interface ISickCustomerAccessLogModelService {

    /**
     * 获取模版基本信息
     */
    fun getModelInfo(id:Long):SickCustomerAccessLogModel?

    /**
     * 放入模版明细信息
     */
    fun setDetails(model:SickCustomerAccessLogModel)

    /**
     * 修改内容
     */
    fun updateModel(model:SickCustomerAccessLogModel):ResponseBody

    /**
     * 修改状态
     */
    fun updateStatus(id:Long,status: Status ):ResponseBody

    /**
     * 获取下一个模版明细
     */
    fun getNextDetail(detailId:Long):SickCustomerAccessLogModelDetail?



    /**
     * 移动排序
     * @param modelId 模版id
     * @param moveType  只查未完成的 MOVE_TYPE_UP MOVE_TYPE_DOWN
     */
    fun move(modelId:Long,moveType:TypeEnum,vo : SickCustomerAccessLogModelSelectVo):ResponseBody

    /**
     * 移动排序
     */
    fun moveByIds(ids:List<Long>):ResponseBody

}